<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, initial-scale=1.0, width=device-width" />
    <meta name="format-detection" content="telephone=no, email=no, date=no, address=no">
    <title>视频下面的按钮</title>
    <link rel="stylesheet" type="text/css" href="./../../css/video.css" />
    <style>
        .yanse {
            position: absolute;
            height: 5px;
            background-color: red;
            z-index: 0;
            top: 0px;
        }

        body {
            /*background: #487389;*/
        }

        .jindutiao1 {
            left: 75px;
            right: 40px;
            left: 108px;
            right: 40px;
            bottom: 23.5px;
        }

        .bottom2 {
            position: fixed;
            bottom: 15px;
            z-index: 1;
            left: 10px;
            right: 10px;
        }

        .bofang {
            bottom: 0px;
            width: 20px;
            margin-right: 0px;
        }

        .bofang img {
            width: 12px;
        }

        .zanting {
            width: 20px;
            height: 20px;
            left: 2px;
            bottom: 0px;
        }

        .zanting img {
            width: 16px;
        }

        .img_kuang {
            width: 20px;
            height: 20px;
        }

        .img_kuang img {
            width: 16px;
            position: absolute;
            top: 3px;
        }

        input[type=range] {
            width: 100%;
            margin-left: 0px;
        }
        .zhezhao{
          position: absolute;
          left: 0px;
          top: 0px;
          right: 0px;
          bottom: 0px;
          z-index: 25;
        }
    </style>
</head>

<body>
    <div id="vm" v-cloak>
        <div class="video test">
            <div class="">
                <div class="jindutiao "  id="mask" ref="mask">
                    <span class="yanse" :style="'width:'+ width2+'%;'"></span>
                    <input type="range" min="0" max="100" step="1" ref="bar" id="bar" v-bind:value='jinduwidth' >
                </div>
            </div>
            <div class="zhezhao"></div>
        </div>
    </div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/config.js"></script>
<script type="text/javascript" src="../../script/rest.js"></script>
<script type="text/javascript" src="../../script/vue.2.5.js"></script>
<script type="text/javascript" src="../../script/zepto.js"></script>
<script type="text/javascript" src="../../script/faskclick.js"></script>
<script type="text/javascript">
    var startX = startY = endX = endY = 0;
    var vm = new Vue({
        el: '#vm',
        data: {
            width2: 0,
        },
        created: function() {
            var _this = this;
            apiready = function() {
                _this.init();
                api.parseTapmode();
                if ('addEventListener' in document) {
                    document.addEventListener('DOMContentLoaded', function() {
                        FastClick.attach(document.body);
                    }, false);
                }
                api.addEventListener({
                    name: 'settimedaojishi'
                }, function(ret, err) {
                    if (ret) {
                      console.log(JSON.stringify(ret))
                      _this.width2 = (31-ret.value.daojishi2)*100/30
                    }
                });
                api.bringFrameToFront({
                    from: 'unbuy_vip_win'
                });
                api.bringFrameToFront({
                    from: 'undakavip_buyvideo'
                });
                api.bringFrameToFront({
                    from: 'undakaunvip_buyvideo'
                });
            }
        },
        computed: {
            jinduwidth: function() {
                return this.width2
            }
        },
        methods: {
            init: function() {

            },

        }
    })
</script>

</html>
